package org.example.conntroller;

import jakarta.annotation.Resource;
import org.example.feign.AppFeign;
import org.example.pojo.Respond;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignController {

    @Resource
    AppFeign appFeign;
    @GetMapping("/test")
    public Respond<String> test(){
        return appFeign.test();
    }
}
